import Mock from 'mockjs'
import { login, logout, getUserInfo } from './login'
import { getTableData, getDragList, getuserinfo, getConsumptionFlow, getRepayFlow } from './data'

// 登录相关和获取用户信息
Mock.mock('/apidl/base/login', login)
Mock.mock('/get_info', getUserInfo)
Mock.mock('/getUserdetail', getuserinfo)
Mock.mock('/getConsumptionFlow', getConsumptionFlow)
Mock.mock('/getRepayFlow', getRepayFlow)
Mock.mock('/logout', logout)
Mock.mock('/get_table_data', getTableData)
Mock.mock('/get_drag_list', getDragList)
Mock.mock('/save_error_logger', 'success')

export default Mock
